﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DialogInstitutes.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.DialogInstitutes" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ข้อมูลสถาบันการศึกษา</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
       <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
       </telerik:RadScriptManager>
       <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    <div> 
        
        
  <table width ="690px" >
  <tr><td >
  <asp:Panel ID="PanelGrid" 
            runat="server" 
            Width="680px" 
            Height="400px" ScrollBars="Auto" >      
        
        
        <telerik:RadGrid 
            ID="RadGrid1" 
            runat="server" 
            AllowAutomaticDeletes="True" 
            AllowFilteringByColumn="True" 
            AllowMultiRowEdit="True" 
            AllowMultiRowSelection="True" 
            AllowSorting="True" 
            AutoGenerateColumns="False" 
            EnableAJAX="True" 
            EnableAJAXLoadingTemplate="True" 
            PageSize="50"
            GridLines="None"        
            Width = "700px" 
            onitemcommand="RadGrid1_ItemCommand" Skin="Outlook" 
            onitemdatabound="RadGrid1_ItemDataBound" AllowPaging="True">
            <MasterTableView 
                AllowMultiColumnSorting="True" 
                AllowFilteringByColumn="True"                
                CellSpacing="-1" 
                ClientDataKeyNames="Sequence"                 
                DataKeyNames="Sequence" 
                GroupLoadMode ="Server"                
                InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                 <CommandItemTemplate>
                    <table width="100%">
                        <tr>
                            <td>
                                                             
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn 
                        DataField="Sequence" 
                        DataType="System.Int32" 
                        Display="False" 
                        HeaderText="Sequence" 
                        ReadOnly="True" 
                        UniqueName="Sequence" 
                        Visible="False">
                    </telerik:GridBoundColumn>               
                <telerik:GridTemplateColumn  AllowFiltering="false">
                <ItemTemplate>              
                    <asp:LinkButton ID="targetControl" 
                        runat="server" 
                        Text="เลือก" 
                        ShowFilterIcon="False"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" Width="20" />
                </telerik:GridTemplateColumn>
                  
                <telerik:GridBoundColumn 
                    DataField="Name" 
                    FilterControlWidth = "100%"
                    AutoPostBackOnFilter ="true"
                    ShowFilterIcon ="false"
                    HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="สถาบันการศึกษา" 
                    UniqueName="Name">
                    <HeaderStyle HorizontalAlign="Center" Width="200px" />
                </telerik:GridBoundColumn>
                                   
             </Columns>   
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField = "Sequence" MasterKeyField = "Sequence" />
            </ParentTableRelation>   
 </MasterTableView>
            <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
    </telerik:RadGrid>
    
    </asp:Panel>
    </td>
    </tr>
    </table>
    </div>
    </form>
</body>
</html>
